package com.dlc.felear.xiaoensale.utils;

import android.content.Context;
import android.content.Intent;

public class OsUtil {
    public static void restartApp(Context context,Class cls) {
        Intent intent = new Intent(context, cls);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent);
        android.os.Process.killProcess(android.os.Process.myPid());
    }
}
